- Key tool for visual analytics
- Much more efficient than static graphics
Examples:
- Navigation (panning, rotation, zooming)
- Selection (highlighting)
- Connecting (linked views)
- Filtering (sample)
- Reconfiguring (change aesthetics)
- …
732A98
Examples:
Navigation operator:
Australian crabs
Australian crabs
Screen space:
Data value space
Data structure space
Different data structures exist: matrix, list, graph,…
Abstraction/Elaboration: histogram with zooming - recompute bars?
Working with aesthetics
Selection: highlight certain ranges of aesthetics (highlight stars)
Without Shiny: key ingredients
d<-SharedData$new(data, key, group)
Without Shiny: key ingredients
highlight-function:
d <- SharedData$new(crabs) scatterCrab <- plot_ly(d, x = ~CL, y = ~RW) %>% add_markers(color = I("black")) barCrab <-plot_ly(d, x=~sex)%>%add_histogram()%>%layout(barmode="overlay") subplot(scatterCrab,barCrab)%>% highlight(on="plotly_select", dynamic=T, persistent = T, opacityDim = I(1))%>% hide_legend()
plotly_data(barCrab)
## # A tibble: 200 x 9 ## species sex index FL RW CL CW BD .crossTalkKey ## <fct> <fct> <int> <dbl> <dbl> <dbl> <dbl> <dbl> <chr> ## 1 Blue Male 1 8.1 6.7 16.1 19 7 1 ## 2 Blue Male 2 8.8 7.7 18.1 20.8 7.4 2 ## 3 Blue Male 3 9.2 7.8 19 22.4 7.7 3 ## 4 Blue Male 4 9.6 7.9 20.1 23.1 8.2 4 ## 5 Blue Male 5 9.8 8 20.3 23 8.2 5 ## 6 Blue Male 6 10.8 9 23 26.5 9.8 6 ## 7 Blue Male 7 11.1 9.9 23.8 27.1 9.8 7 ## 8 Blue Male 8 11.6 9.1 24.5 28.4 10.4 8 ## 9 Blue Male 9 11.8 9.6 24.2 27.8 9.7 9 ## 10 Blue Male 10 11.8 10.5 25.2 29.3 10.3 10 ## # … with 190 more rows
m <- SharedData$new(mpg) p1 <- ggplot(m, aes(displ, fill = class)) + geom_density() p2 <- ggplot(m, aes(displ, hwy, fill = class)) + geom_point() subplot(p1, p2) %>% highlight("plotly_click") %>% hide_legend()
## Warning: All elements of `...` must be named. ## Did you want `key = c(key)`?
Applications:
Analysis:
Issues:
https://www.jasondavies.com/wordtree/
Analysis:
https://hrbrmstr.github.io/streamgraph/
Van Ham, F., Wattenberg, M., & Vi?gas, F. B. (2009). Mapping text with phrase nets. IEEE transactions on visualization and computer graphics, 15(6).
Wattenberg, M., & Vi?gas, F. B. (2008). The word tree, an interactive visual concordance. IEEE Transactions on Visualization & Computer Graphics, (6), 1221-1228.